package com.xuzimian.globaldemo.spring.core.el;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Application {

	@Test
	public  void testSpringEL() {
		@SuppressWarnings("resource")
        ApplicationContext ctx = new ClassPathXmlApplicationContext("spring-el.xml");

		ShopList list = (ShopList) ctx.getBean("list");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list2");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list3");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list4");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list5");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list6");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list7");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list8");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list9");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list10");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list11");
		System.out.println(list);

		list = (ShopList) ctx.getBean("list12");
		System.out.println(list);
	}

}
